<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // var arr2 = ['王五','王健林','王思聪'];
        // var arr = ['张三','李四' ,arr2]; //二维数组
        // // var obj = {
        // //     name: '张三',
        // //     age: 20 
        // // }
        // console.log(arr);
        var arr = ['张三','李四' ,['王五','王健林','王思聪']];
        // 多维数组的循环 打印出来
        for(var i=0;i<arr.length;i++){
            if(i===2){
                var smallArr = arr[i];
                for(var j=0;j<smallArr.length;j++){
                    console.log(smallArr[j]);
                }
            }else{
                console.log(arr[i]);
            }
        }
        


    </script>
</body>
</html>